from _pytest.fixtures import fixture

from common.yaml_util import clear_yaml


@fixture(scope="function",autouse=True)
def start_end_info():

    print("---case开始执行---")

    yield

    print("---case执行结束---")

@fixture(scope="class",autouse=True)
def clear_tmpData():
    print("---suit开始执行---")
    clear_yaml()
    yield
    print("---suit执行结束---")

# @fixture(scope="function",autouse=False)
# def test_fixture():
#     print("testinfobegin")
#     yield
#     print("testinfoend")
#
# @fixture(scope="function",autouse=False)
# def test_fixture2():
#     print("testinfobegin2")
#     yield
#     print("testinfoend2")